<?php
$news = $this->news;
?>
<rss xmlns:orgsource="http://purl.org/dc/elements/1.1/" version="2.0">
   <channel>
   <title>Новости на russianexpress.net</title>
       <image>
           <title>
               Последние новости Канады и мира - Russianexpress.net
           </title>
           <url>http://russianexpress.net/images/new2_03.gif</url>
           <link>
           http://russianexpress.net/</link>
           <width>392</width>
           <height>83</height>
           <description>
               Русский экспресс - информационно-новостной портал №1 в Торонто. Объективно о событиях по всему миру.
           </description>
       </image>
       <link>
       <![CDATA[ http://russianexpress.net/ ]]>
       </link>
       <description>
           <![CDATA[ Новости на russianexpress.net ]]>
       </description>
       <language>ru</language>
       <copyright>Copyright 2012 russianexpress.net</copyright>
       <managingEditor>admin@russianexpress.net</managingEditor>

<? foreach ($news as $article): ?>
       <item>
           <title>
               <![CDATA[
               <?= $article['title'] ?>
               ]]>
           </title>
           <description>
               <![CDATA[
               <img align="left" vspace="5" hspace="10" src="<?php echo $this->image($article['img']) ?>"><?= $article['introduction'] ?><br clear="all">
               ]]>
           </description>
           <fulltext>
               <![CDATA[
               <?= strip_tags($article['content']) ?>
               ]]>
           </fulltext>
           <image>
               <![CDATA[
               <img align="left" vspace="5" hspace="10" src="<?php echo $this->image($article['img']) ?>">
               ]]>
           </image>
           <pubDate>
               <![CDATA[ <?= $article['date']->format('D, d M Y g:i:s O') ?> ]]>
           </pubDate>
           <guid>
               <![CDATA[ <?= $article['id'] ?> ]]>
           </guid>
           <category domain="http://russianexpress.info/index/rubric/id/<?= $article['rubric']['id'] ?>"><?= $article['rubric']['name'] ?></category>
           <link>
           http://russianexpress.info/index/news/id/<? $article['id'] ?>
           </link>
           <comments>
               <![CDATA[
               http://russianexpress.info/index/news/id/<? $article['id'] ?>#comments
               ]]>
           </comments>
           <source url="http://russianexpress.info/">
           Новости на russianexpress.info</source>
       </item>
<? endforeach; ?>
   </channel>
</rss>